package timing.ukulele.portal.client;

import timing.ukulele.portal.client.callback.FlowClientCallback;
import timing.ukulele.common.ResponseResult;
import timing.ukulele.common.flow.FlowData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "ukulele-flow", path = "flow", fallback = FlowClientCallback.class)
public interface FlowClient {
    @GetMapping("/api/flow/getBySystemId/{systemId}")
    ResponseResult<List<FlowData>> getBySystemId(@PathVariable("systemId") Long systemId);
}
